//import com.innovatepay.merchsdk.util.HttpClientUtil;
//import com.qian.api.ddj.model.PayTypeDict;
//import com.qian.api.ddj.util.SignUtils;
//import com.qian.ddj.pay.util.sendJSONPost;
//import org.junit.Test;
//
//import java.math.BigDecimal;
//import java.text.SimpleDateFormat;
//import java.util.Date;
//import java.util.HashMap;
//import java.util.Map;
//import java.util.TreeMap;
//
//public class aaaaa {
//    @Test
//    public void aaaa(){
//        Map<String,String> map = new TreeMap<>();
//        String key="MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALyeoUu15Thu0PvKjKmtV9b8Ak0E9oi/4fBkhRtwr+wdRquCTBG3+sQN10i97PmnSEKI/RO0Ms1Mjh/9x7LjS0gdUyF8wYVpjYbAEp8MHoe5Qcd8eDS86frdb2TMJl3C50wE9VVAOLIXqgS2FWroMhwMY6OnhtPYUU8BYXXprVt5AgMBAAECgYAOrZmHtsP7vEPvFDgWDDNFu57CN5ynz6bZejkRhZdrHGwfdKhOyK5vC1SxiHYkh2wMIXTwT5mUeFynCKy9swpslAQbc8700qEZjzcjKFH1zLuyIferwqwYF7mMzmh7qb63y0aitx6vT5SU4riiITYzodjnRK2vcVP8aBCExKZwMQJBAOKgMF1yxAykb7Hi3uDR7Lq0Y582Z5jTK/hNgTGwsLKD58aOu2d4U3mb3un1959tzbcYUZb6kfnZIcwlc7slnmsCQQDVEVZSYwC7LsCzzHGwkF035svJfVj4U05m9RZnZU78MLd4Gs4pzEtt31dtE1xNXkPj0v6o5TLcFrWJt9nD9B6rAkEAl88QtviTBZj9TV8ZR+a3upXuChAKs5/521onyh5/LwYXM7YXKYe7+0GDwJvI5Z5LaHQ863MsZ/6gmj0YWmwnwwJAXA7tmRMlkbqVkBnZVUxKuoiBrED4W/LCgUGLuIjRI6141+/c+7pFLOe+wmYHD3aXJqxXU2oUG3vEXAiPkla7mQJBALE/rMf2DtutEX3Esuh0d9EBhr8KowvplVLTCodg5JtwcDswjzRgnO1u4hgSb0dbkzRhCVjuGxHf7XYRRAaCuj8=";
//        Date date = new Date();
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddhhmmss");
//        map.put("service","payForAnotherOne");
//        map.put("merchantNo","CX0001718");
//        map.put("version","V2.0");
//        map.put("accountProp","1");
//        map.put("accountNo","6228480028164122377");
//        map.put("orderAmount","1000");
//        map.put("orderTime",sdf.format(date));
//        map.remove("key");
//        map.remove("url");
//        map.remove("sign");
//        String sign= SignUtils.getsign(map,key);
//        map.put("sign",sign);
//        String url="http://service.gaohuitong.com/PayApi/agentPay";
//        String result = sendJSONPost.post(url,map);
//        System.out.println(result);
//    }
//    @Test
//    public void sssss(){
//        String key = business.getSecretKey();
//        String userId = business.getAccount();
//        Date date = new Date();
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddhhmmss");
//        String version = "V2.0";
//        Map<String, String> map=new HashMap<String, String>();
//        map.put("service","getCodeUrl");
//        map.put("merchantNo",userId);
//        map.put("bgUrl","http://baidu.com"+"/notify/ghtsmwxNotify");
//        map.put("version",version);
//        if (PayTypeDict.WX_CODE.equals(order.getPayType())){
//            map.put("payChannelCode","CX_WX");
//        }else if (PayTypeDict.ALI_CODE.equals(order.getPayType())){
//            map.put("payChannelCode","CX_ZFB");
//        }
//
//        map.put("orderNo",order.getOrderNo());
//        map.put("orderAmount",order.getRealAmount().multiply(new BigDecimal(100)).toString());
//        map.put("curCode","CNY");
//        map.put("orderTime",sdf.format(date));
//        map.put("orderSource","1");
//        map.remove("key");
//        map.remove("url");
//        map.remove("sign");
//        String sign=SignUtils.getsign(map,key);
//        String receive= HttpClientUtil.post("http://service.gaohuitong.com/PayApi/nativePay",map);
//    }
//}
